﻿
using DataTransformationTasks.TcpClientDirver;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

var hostBuilder = new HostBuilder();

hostBuilder.ConfigureServices(services =>
{
    services.AddLogging(loggingBuilder =>
    {
        loggingBuilder.AddConsole();
    });
    services.AddHostedService<TcpClientService>();
});

var host = hostBuilder.Build();

host.Start();

host.WaitForShutdown();